﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using 访问者模式.Visitor;

namespace 访问者模式
{
  public abstract  class Student
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public long QQ { get; set; }

        public void Study()
        {
            Console.WriteLine($"{this.Name}学生");
        }

        public abstract void GetVideo();

        public abstract void GetVideoVisitor(IVisitor visitor);

        //public void GetVideo()
        //{
        //    if (this is StudentVip)
        //    {
        //        Console.WriteLine("你是VIP学生霸气可以做任何事");
        //    }
        //    else if (this is StudentFree)
        //    {
        //        Console.WriteLine("你还是冲充钱吧");
        //    }
        //}
    }
}
